import { Block } from '@tarojs/components'
import Taro from '@tarojs/taro'
import withWeapp from '@tarojs/with-weapp'
import './app.scss'

class App extends Taro.Component {
  globalData = {
    cut_area: '全国' //作为一级导航的初始化数据
  }
  config = {
    pages: ['pages/index/index', 'Componet/select/select', 'pages/logs/logs'],
    window: {
      navigationBarBackgroundColor: '#ff5777',
      navigationBarTitleText: '疫趋势',
      navigationBarTextStyle: 'white',
      backgroundColorTop: '#808080'
    },
    style: 'v2',
    sitemapLocation: 'sitemap35.json'
  }

  componentWillMount() {
    this.$app.globalData = this.globalData
  }

  render() {
    return null
  }
}

export default App
Taro.render(<App />, document.getElementById('app'))
